package Acwing.数学知识;

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.Set;

/**
 * @Title: approximateNumber
 * @Author 贾金博
 * @Package Acwing.数学知识
 * @Date 2025/4/10 下午10:50
 * @description: 约数个数
 */
public class approximateNumber {

    private static int MOD =  1000000007;
    private static Map<Integer,Integer> mp = new HashMap<Integer,Integer>();
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int t = sc.nextInt();
        while(t -- > 0 ) {
            int x = sc.nextInt();
            findYs(x);
        }

        // 开始计算
        long ret = 1;
        for(Integer se : mp.keySet()) {
            ret = (mp.get(se) + 1) * ret % MOD;
        }
        System.out.println(ret);
    }

    private static void findYs(int x) {
        for(int i = 2; i <= x / i; i ++ ) {
            while(x % i == 0 ) {
                mp.put(i,mp.getOrDefault(i,0) + 1);
                x /= i;
            }
        }

        if(x > 1) {
            mp.put(x,mp.getOrDefault(x,0) + 1);
        }
    }

}
